<?php
App::uses('AppModel', 'Model');
/**
 * Cart Model
 *
 * @property Customer $Customer
 * @property Item $Item
 */
class Cart extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Customer' => array(
			'className' => 'Customer',
			'foreignKey' => 'customer_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

    public $hasMany = array(
        'CartsItem' => array(
            'className' => 'CartsItem',
            'foreignKey' => 'cart_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );
//
//    public function addItemToCart($item_id, $cart_id){
//        //Does customer have a cart
//        //Yes, add item to dbcart
//        //No,
//    };

}
